/**
 * 接口管理
 * 商户中心>门店管理>POS管理
 */
import request from '@/utils/request';

// 获取POS机列表
export const getPOSList = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/queryStorePosList', {
    method: 'POST',
    data: params
  })
}
// 获取全部商户
export const getSupplierAll = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busMerchantsInfo/all', {
    method: 'POST',
    data: params
  })
}
// 获取全部门店
export const getStoreAll = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/getStorePageByMerchantsId', {
    method: 'POST',
    data: params
  })
}
// 更换状态
export const changeStatus = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/updateStorePosState', {
    method: 'POST',
    data: params
  })
}
// 删除POS
export const deletePOS = (params = {}) => {
  return request('/Amaidan-Merchants-Web/merchants/busStorePos/deleteStorePos', {
    method: 'GET',
    params
  })
}
